package com.example.wx.service.impl;

import com.example.wx.dao.entity.WxPublicMessageTemplateDO;
import com.example.wx.dao.mapper.WxPublicMessageTemplateMapper;
import com.example.wx.modle.resp.WxPublicMessageTemplateRespDTO;
import com.example.wx.service.WxPublicMessageTemplateService;
import com.example.wx.util.MyBeanUtils;
import com.vivo.it.vwkc.inventory.common.entity.request.CommonRequestPage;
import com.vivo.it.vwkc.inventory.common.entity.response.CommonResponsePage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 微信公众号模板消息表
 *
 * @author ZhangBin
 * @date 2025-04-08 09:54:36
 * @Description:
 */
@Service
public class WxPublicMessageTemplateServiceImpl implements WxPublicMessageTemplateService {
    @Autowired
    private WxPublicMessageTemplateMapper wxPublicMessageTemplateMapper;

    @Override
    public CommonResponsePage<WxPublicMessageTemplateRespDTO> queryPage(CommonRequestPage commonRequestPage) {

        WxPublicMessageTemplateDO wxPublicMessageTemplateDO = new WxPublicMessageTemplateDO().setWxPublicAppId(null);
        List<WxPublicMessageTemplateDO> wxPublicMessageTemplateDOS = wxPublicMessageTemplateMapper.queryList(wxPublicMessageTemplateDO);
        List<WxPublicMessageTemplateRespDTO> wxPublicMessageTemplateRespDTOS = MyBeanUtils.copyList(wxPublicMessageTemplateDOS, WxPublicMessageTemplateRespDTO.class);

        return null;
    }

}
